var fields = new Array();
var callback_function = function (fields){alert(fields);return false;};
var sender = null;
function confirm_delete(url) {
		if (confirm("¿Estás seguro que deseas eliminar el elemento?")) {
			window.location = url;
		}
}

function update_fields(element) {
	var fields = new Array();
	$("td",element).each(
		function (){
			if (this.className!=''){
				classes = this.className.split(' ');
				if (classes instanceof Array){
					key = classes[0];
				}else{
					key = classes;
				}
				value = $(this).text();
				fields[key] = value;
			}
		}
	);
/*	for( i in fields){
		alert(i+' : '+fields[i]);
	}
*/
	callback_function(fields);
/*
	for (key in fields) {
		$(key).val($(fields[key],element).text());
	}
*/
}

function ver_flash(nombre, ancho, alto) {
	document.writeln("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+ancho+"' height='"+alto+"' id='"+nombre+"' align='middle'><param name='allowScriptAccess' value='always' /><param name='movie' value='"+nombre+"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><embed src='"+nombre+"' quality='high' width='"+ancho+"' height='"+alto+"' name='"+nombre+"' align='middle' wmode='transparent' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}